Get Console Logs
AutomatR.Web.GetConsoleLogs
The "Get Console Logs" activity in AutomatR's Web Activities category allows you to retrieve console logs from the Chrome browser for debugging purposes. This activity is helpful when you need to inspect and analyze the logs generated during a specific operation or process in your web automation workflow.
Properties
Name | Description |
---|---|
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Get Console Logs" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e. 1. |
Output | |
Result | Outputs a JObject containing the console logs obtained from a certain operation or process. The JObject structure includes a "data" property containing the logs as a JArray. Use variables of type JObject to store the console logs for further analysis and debugging. |
How to use:
- Drag and drop the "Get Console Logs" activity onto the workflow.
- Optionally, configure the delay based on your requirements.
- Execute the workflow to fetch console logs from the Chrome browser.
Example: Consider an example where the "Get Console Logs" activity is used to retrieve console logs during the execution of a web automation workflow:
Get Console Logs:
Delay: 2
Result: consoleLogs
In this example, the activity fetches the console logs with a 2 seconds delay and stores them in the variable "consoleLogs" of type JObject for further analysis.